package person.mybatisplusstudy.po;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.ToString;

import java.io.Serializable;

/**
 * @author linzp
 * @version 1.0.0
 * CreateDate 2020/9/23 14:05
 */
@Data
@ToString(callSuper = true)
@TableName("page_user")
public class User extends BaseEntity implements Serializable {

    private static final long serialVersionUID = -3952430900388756368L;

    /**
     * 如果字段名称和实体名称不一致的话，TableField可以进行字段值的映射，
     */
    @TableField("name")
    private String userName;

    @TableField("age")
    private String age;
}
